/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package queenb.net.entitybean;

/**
 * @author   :linh
 * @package  :queenb.net.entitybean
 * @file     :Q100.java
 * @created  :Jul 1, 2010
 * $updated  :
 * @purpose  : 
 *
 */
import java.sql.Date;
import oracle.jdbc.OracleTypes;
import queenb.net.annotation.Mapping;
import queenb.net.datacontrol.DataControl;

public class Q050 extends DataControl<Q050> implements java.io.Serializable{
    @Mapping(name = "fn100", typeMapping = OracleTypes.INTEGER)
    private int fn100;
    @Mapping(name = "hoten", typeMapping = OracleTypes.CHAR)
    private String hoten;
    @Mapping(name = "nv106", typeMapping = OracleTypes.CHAR)
    private String nv106;
    @Mapping(name = "qn056", typeMapping = OracleTypes.INTEGER)
    private int qn056;
    @Mapping(name = "qv051", typeMapping = OracleTypes.CHAR)
    private String qv051;
    @Mapping(name = "qv052", typeMapping = OracleTypes.CHAR)
    private String qv052;
    @Mapping(name = "qd053", typeMapping = OracleTypes.DATE)
    private Date qd053;
    @Mapping(name = "qd054", typeMapping = OracleTypes.DATE)
    private Date qd054;
    @Mapping(name = "qn055", typeMapping = OracleTypes.INTEGER)
    private int qn055;
    public  boolean actived;
    private int selected;
    @Mapping(name = "ad", typeMapping = OracleTypes.INTEGER)
    private int ad;

    /**
     * @return the fn100
     */
    public int getFn100() {
        return fn100;
    }

    /**
     * @param fn100 the fn100 to set
     */
    public void setFn100(int fn100) {
        this.fn100 = fn100;
    }

    /**
     * @return the hoten
     */
    public String getHoten() {
        return hoten;
    }

    /**
     * @param hoten the hoten to set
     */
    public void setHoten(String hoten) {
        this.hoten = hoten;
    }

    /**
     * @return the nv106
     */
    public String getNv106() {
        return nv106;
    }

    /**
     * @param nv106 the nv106 to set
     */
    public void setNv106(String nv106) {
        this.nv106 = nv106;
    }

    /**
     * @return the qn056
     */
    public int getQn056() {
        return qn056;
    }
    public boolean getQn056b() {
        return getQn056()==1;
    }

    /**
     * @param qn056 the qn056 to set
     */
    public void setQn056(int qn056) {
        this.qn056 = qn056;
    }

    /**
     * @return the qv051
     */
    public String getQv051() {
        return qv051;
    }

    /**
     * @param qv051 the qv051 to set
     */
    public void setQv051(String qv051) {
        this.qv051 = qv051;
    }

    /**
     * @return the qv052
     */
    public String getQv052() {
        return qv052;
    }

    /**
     * @param qv052 the qv052 to set
     */
    public void setQv052(String qv052) {
        this.qv052 = qv052;
    }

    /**
     * @return the qd053
     */
    public Date getQd053() {
        return qd053;
    }

    /**
     * @param qd053 the qd053 to set
     */
    public void setQd053(Date qd053) {
        this.qd053 = qd053;
    }

    /**
     * @return the qd054
     */
    public Date getQd054() {
        return qd054;
    }

    /**
     * @param qd054 the qd054 to set
     */
    public void setQd054(Date qd054) {
        this.qd054 = qd054;
    }

    /**
     * @return the qn055
     */
    public int getQn055() {
        return qn055;
    }

    /**
     * @param qn055 the qn055 to set
     */
    public void setQn055(int qn055) {
        this.qn055 = qn055;
    }
    public String getDesc(){
        return getHoten()+" ("+getNv106()+")";
    }

    /**
     * @return the actived
     */
    public boolean isActived() {
        if(this.getQn056()==1){
            actived=true;
        }
        if(this.getQn056()==0){
            actived=false;
        }
        return actived;
    }

    /**
     * @param actived the actived to set
     */
    public void setActived(boolean actived) {
        if(actived){
            setQn056(1);
        }
        if(!actived){
            setQn056(0);
        }
        this.actived = actived;
    }

    /**
     * @return the selected
     */
    public int getSelected() {
        return selected;
    }

    /**
     * @param selected the selected to set
     */
    public void setSelected(int selected) {
        this.selected = selected;
    }

    /**
     * @return the ad
     */
    public int getAd() {
        return ad;
    }

    /**
     * @param ad the ad to set
     */
    public void setAd(int ad) {
        this.ad = ad;
    }
       
}
